<?php
class Wow_Armory_App_Autoload
{
    
    public static function autoload($name)
    {
        $split = explode('_', $name);
        $file  = implode('/', $split) . '.php';
        $path  = explode(':', get_include_path());
        $lib   = $path[2];
        
        if (!file_exists($lib . '/' . $file)) {
            throw new Wow_Armory_Exception('', 1014);
        }
        require_once $file;
    }
    
}